package test;

//删除公共字符
import java.util.Scanner;
public class topic05 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入data");
        while (sc.hasNext()){
            String s1 = sc.nextLine();
            System.out.println("请输入aim");
            String s2 = sc.nextLine();
            for (int i = 0; i < s2.length(); i++) {
                s1 = s1.replaceAll(s2.charAt(i)+"","");//将data字符串里所有和aim字符串公共部分替换为""
            }
            System.out.println(s1);
        }
    }
}
